﻿<Window x:Class="Samurai.Client.ExceptionReportWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Problem!" Height="300" Width="300">
    <Grid Background="OldLace">
        <Grid.RowDefinitions>
            <RowDefinition Height="2*" />
            <RowDefinition Height="5*" />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>

        <RichTextBox Margin="3" IsReadOnly="True" Grid.Row="0" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
            <FlowDocument>
                <Paragraph>
                    <Run FontSize="16">Oops Extremely Sorry!</Run>
                    <LineBreak />
                    <Run>Please inform us, so that we can resolve the issue.</Run>
                </Paragraph>
                
            </FlowDocument>
        </RichTextBox>

        <TextBox  Grid.Row="1" Text="{Binding StackTrace}" IsReadOnly="True" TextWrapping="WrapWithOverflow" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="3" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
        
        <Button Grid.Row="2" Content="Tell Us" Style="{DynamicResource CommonButton}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5"
                Command="{Binding ReportExceptionCommand}" CommandParameter="{Binding Exception}"
                />

    </Grid>
</Window>